<div class="content">
	<ul class="link">
		<?php 
		$time	=	date('H:i');
		?>
		<?php if(($time >= "16:13" && $time < "16:30") || ($time >= "17:13" && $time < "17:30") || ($time >= "19:13" && $time < "19:30")):?>
		<script type="text/javascript" src="<?php echo js_link('jquery-1.7.2.min.js');?>"></script>
		<script>
		checkTime = 5000;
		clockTime = 1000;
		timerCheck = setInterval("load_ajax();",checkTime);
		
		function load_ajax()
		{
			$.ajax({
				  url: '<?php echo site_url('tuong-thuat-truc-tiep/ajax');?>',
				  success: function(data) {
				    $('#l-live').html(data);
				    //alert('Load was performed.');
				  }
			});
		}
		
		load_ajax();
		</script>
		<li id="l-live">
			
		</li>
		<?php endif;?>
		
		<?php if($time >= "16:30" && $time <= "20:00"):?>
			<li><a><span>Kết quả</span></a>
				<ul class="submenu">
					<?php if($time >= "16:30"):?>
					<li><a href="<?php echo site_url('ket-qua-xo-so/mn');?>">Xổ số miền Trung</a></li>
					<?php endif;?>
					<?php if($time >= "17:30"):?>
					<li><a href="<?php echo site_url('ket-qua-xo-so/mt');?>">Xổ số miền Nam</a></li>
					<?php endif;?>
					<?php if($time >= "19:30"):?>
					<li><a href="<?php echo site_url('ket-qua-xo-so/mb');?>">Xổ số miền Bắc</a></li>
					<?php endif;?>
				</ul>
			</li>
		<?php endif;?>
		<li><a href="<?php echo location_link('xo-so-mien-bac');?>"><span>Miền Bắc</span></a></li>
		<li><a href="<?php echo location_link('xo-so-mien-trung');?>"><span>Miền Trung</span></a></li>
		<li><a href="<?php echo location_link('xo-so-mien-nam');?>"><span>Miền Nam</span></a></li>
		<li><a href="<?php echo site_url('hom-nay');?>"><span>Hôm nay</span></a></li>
		</ul>
		<div class="box-detail"><span class="box-css3">CHỨC NĂNG</span></div>
		<div class="sub">
		<ul class="submenu">
				<li><a href="<?php echo site_url('thong-ke');?>">Thống kê</a></li>
				<li><a href="<?php echo site_url('soi-keo');?>">Soi cầu</a></li>
				<li><a href="#">Dịch vụ xổ số</a></li>
				<li><a href="<?php echo site_url('xem-kqxs-theo-tinh');?>">Xem KQXS theo tỉnh</a></li>
				<li><a href="<?php echo site_url('xem-kqxs-theo-ngay');?>">Xem KQXS theo ngày</a></li>
				<li><a href="<?php echo site_url('lich-mo-thuong');?>">Lịch mở thưởng</a></li>
			
		</ul>
		</div>
	
</div>